package com.dayuanit.exception;

public enum BusinessEnum {


    USERNAME_CAN_NOT_BE_EMPTY(1001,"入参里的用户名不能为空"),

    PHONE_CAN_NOT_BE_EMPTY(1002,"入参里的手机号不能为空"),
    PASSWORD_CAN_NOT_BE_EMPTY(1003,"入参里的密码不能为空"),
    PHONE_FORMART_ERROR(1004,"手机号格式不正确"),

    PHONE_OR_PASSWORD_ERROR(1005,"手机号或者密码错误"),

    PHONE_IS_REGISTERED(1006,"手机号已经被注册");
    private Integer code;


    private String msg;


    private BusinessEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }


    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
